const path = require('path')


const resolve = (dir) => path.resolve(__dirname, dir)


module.exports = {
  webpack: {
    alias: {
      '@': resolve('src'),
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'https://api.cn',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}